import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false

// 导入bootstrap全局样式
import "bootstrap/dist/css/bootstrap.min.css"

// 导入axios
import axios from "axios"
// 设置默认的baseURL
axios.defaults.baseURL = "https://www.escook.cn"
// 将axios挂载到Vue.prototype上
Vue.prototype.$axios = axios

// 设置自定义指令
Vue.directive("focus", {
  inserted(el) { 
    el.focus()
  }
})

new Vue({
  render: h => h(App),
}).$mount('#app')